package com.binarystar.examination.service.impl;

import com.binarystar.examination.bean.TeacherBean;
import com.binarystar.examination.service.TeacherServiceI;

public class TeacherServiceImpl implements TeacherServiceI {

	@Override
	public TeacherBean[] createTeacher(int num ,String teachertype) {
		TeacherBean[] teachers = new TeacherBean[num];
		for (int i = 0; i < teachers.length; i++) {
			TeacherBean teacher = new TeacherBean();
			teacher.setType(teachertype);
			teacher.setName("sjfjs" + i);
			teachers[i] = teacher;
		}

		return teachers;
	}

}
